package com.fz.song.mapper;

import com.fz.song.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {

    /**
     * 查询用户信息
     *
     * @param username
     * @return
     */
    @Select("select  * from  users where username=#{username}")
    User findUserByUserName(@Param("username") String username);
}
